package com.weseal.vo;

import com.weseal.domain.TimeInfo;
import com.weseal.domain.UserInfo;
import com.weseal.enums.DateType;
import com.weseal.utils.DateUtils;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author
 */
public class UserInfoVo extends IdentityVo implements Serializable {


	private static final long serialVersionUID = 6097867180800940110L;
	
	
	private String token;
	
	
	public static UserInfoVo convert2Vo(UserInfo domain) {
		UserInfoVo vo = new UserInfoVo();
		BeanUtils.copyProperties(domain, vo);
		return vo;
	}

	public static List<UserInfoVo> convert2Vo(List<UserInfo> domains) {
		List<UserInfoVo> vos = new ArrayList<>();
		for (UserInfo domain : domains) {
			vos.add(convert2Vo(domain));
		}
		return vos;
	}
	
	
	public String getToken() {
		return token;
	}
	
	public void setToken(String token) {
		this.token = token;
	}
}